﻿using EasyDDD.AdminModule.Domain.DomainEventsSysMenu;

namespace EasyDDD.AdminModule.Application.DomainEventsHandler
{
    //internal class SysMenuCreatedDomainEventHandler(
    //    ICapPublisher publisher,
    //    ILogger<SysMenuCreatedDomainEventHandler> logger)
    //    : IDomainEventHandler<SysMenuAddDomainEvent>
    //{
    //    public Task Handle(SysMenuAddDomainEvent @event, CancellationToken cancellationToken)
    //    {
    //        logger.LogInformation("领域事件 SysMenuCreatedDomainEventHandler {}", @event.SysMenu.Id);
    //        return publisher.PublishAsync(nameof(SysMenuCreatedIntegrationEvent), new SysMenuCreatedIntegrationEvent(@event.SysMenu.Id.Value));
    //    }
    //}
}
